To be out of order or reversed; very confused or
mixed up; completely fouled up or wrong.
'Ass' refers to the rear end or buttocks, and 'backwards' means reversed. The phrase suggests that something is happening the wrong way, with the rear coming first. ('Ass' is an
impolite word, so be careful using this phrase.)
Synonym:
snafu